const validate = {
  isPhone: phone => {
    var telreg = /^1[0-9]{10}$/
    return telreg.test(phone)
  },
  isTel: tel => {
    var phone = /^1[0-9]{10}$/
    const telr = /^0\d{2,3}-?\d{7,8}$/
    return telr.test(tel) || phone.test(tel)
  }
}
export default validate
